
inherit "inherit/object"
number main(object me,string arg){

    if( !arg ){
        string s = lookRoom(me,environment(me));
        tellObject(me,s);
    }else{
        println("查看环境 "+arg);
    }


}

string lookRoom(object me,object room){
    string s;
    s+=fmt("这儿是 %s %s",room.query("short"),room.query("long"));
    //出口信息
    map exits;
   string extStr,eInf="这儿的出口有";
    if( mapp( (exits = room.query("exits")) ) ){
        object er;
        foreach( p in keys(exits) ){
            if( objectp(  (er = findObject(exits[p]))  ){
                extStr+=fmt(" <%s(%s)>、",er.query("short"),p );
            }
        }
    }

    eInf = extStr==""?"这儿看起来没有任何出口。" : eInf+extStr;

    //内容物有哪些....
    string obsStr,obsInf = "你环顾四周发现这儿还有:";
    var obs;


    foreach( obi in allInventory(room) ){

        obsStr+=obi.query("name")+"、";

    }
    obsInf = obsStr==""?"什么都没有。" : obsInf+obsStr;


    return s+eInf+obsInf;
}